package model

import "time"

// Alert represents persisted alert document.
type Alert struct {
	ID          string            `bson:"_id"`
	Fingerprint string            `bson:"fingerprint"`
	Alertname   string            `bson:"alertname"`
	Severity    string            `bson:"severity"`
	Status      string            `bson:"status"`
	Instance    string            `bson:"instance"`
	Job         string            `bson:"job"`
	Description string            `bson:"description"`
	Labels      map[string]string `bson:"labels"`
	Annotations map[string]string `bson:"annotations"`
	StartsAt    time.Time         `bson:"starts_at"`
	EndsAt      time.Time         `bson:"ends_at"`
	CreatedAt   time.Time         `bson:"created_at"`
	UpdatedAt   time.Time         `bson:"updated_at"`
}
